/* iot-platform/assets/css/homepage.css */

/* --- 1. 布局 --- */
.main-content.homepage-content {
    padding: 24px;
}
.homepage-content {
    display: flex;
    gap: 24px;
}
.content-left, .content-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.content-left { flex: 3; }
.content-right { flex: 1; }

.trend-card { flex-grow: 1; }
.trend-card .card-body { flex-grow: 1; display: flex; }


/* --- 2. KPI卡片 --- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.kpi-card { flex-direction: row; align-items: center; padding: 20px; }
.kpi-card .icon-placeholder {
    width: 48px; height: 48px; background-color: #e6f7ff; border-radius: 50%; margin-right: 16px;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #1890ff;
}
.kpi-card .icon-placeholder svg { width: 24px; height: 24px; }
.kpi-card .kpi-content .value { font-size: 24px; font-weight: 700; }
.kpi-card .kpi-content .label { font-size: 14px; color: #8c8c8c; margin-top: 4px; }


/* --- 3. 图表卡片 --- */
.chart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.chart-container { height: 280px; width: 100%; }
.trend-card .chart-container { height: 100%; }
.card-header { border-bottom: none; /* 根据原型，移除标题下划线 */ }

/* 告警趋势按钮样式 */
.btn-capsule {
    background-color: #f0f2f5;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    color: #595959;
    cursor: pointer;
}
.btn-capsule.active {
    background-color: #1890ff;
    color: #fff;
}


/* --- 4. 右侧栏 --- */
.common-functions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.function-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.function-item .icon-placeholder {
    width: 48px; height: 48px; background-color: #f5f5f5; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: #595959;
}
.function-item span { font-size: 12px; color: #595959; }

.data-detail-card { text-align: center; }
.chart-container-small { height: 180px; }
.air-quality-info { margin-top: -20px; }
.air-quality-info h3 { font-size: 18px; margin: 8px 0; font-weight: 500; }
.air-quality-info h3 span { color: #52c41a; font-weight: 700; margin-left: 4px; }
.air-quality-info p { margin: 4px 0; color: #595959; }

/* 底部信息卡片 */
.info-icon-card {
    flex-direction: row;
    align-items: center;
    padding: 20px;
}
.info-icon-card .icon-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-right: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-icon-card .icon-placeholder.orange {
    background-color: #fff7e6;
    color: #fa8c16;
}
.info-icon-card .icon-placeholder svg {
    width: 24px;
    height: 24px;
}
.info-icon-card .content .label {
    color: #8c8c8c;
    font-size: 14px;
    margin-bottom: 4px;
}
.info-icon-card .content .value {
    font-size: 18px;
    font-weight: 600;
}